package com.amose.factory;

import com.amose.config.Configuration;

/**
 * @author yangpeng
 * @time 2020/2/22
 * @since 1.0.0
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration){
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
